package com.central.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.central.modules.sys.entity.SysRoleUserEntity;

import java.util.List;

public interface SysRoleUserService extends IService<SysRoleUserEntity> {
    //添加
    boolean add(Long userId, List<Long> roleIds);

    //清空
    boolean cleanByRoleId(Long roleId);

    boolean cleanByUserId(Long userId);

    //删除
    boolean removeByRoleIdAndUserId(Long roleId, Long userId);

    //查询用户所有的角色ids
    List<Long> listAllByUserId(Long userId);


}
